package com.one.blocks.rbac.mapper;

import com.one.blocks.mvc.mapper.BaseMapper;
import com.one.blocks.rbac.domain.SysRoleOrg;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Set;

/**
 * @author <a href="mailto:idler41@163.con">idler41</a> created on 2022-05-06 10:54:42
 */
@Repository
public interface SysRoleOrgMapper extends BaseMapper<SysRoleOrg> {

    int deleteByRoleId(Integer roleId);

    List<Integer> selectByRoleId(Integer roleId);

    Integer[] selectByOrgId(Integer[] orgIds);

    Set<Integer> selectAllRoleId();

}